<ngx-loading-bar></ngx-loading-bar>
<nz-layout class="app-layout">
  <nz-sider class="menu-sidebar"
            nzCollapsible
            nzWidth="256px"
            nzBreakpoint="md"
            [(nzCollapsed)]="isCollapsed"
            [nzTrigger]="null">
    <div class="sidebar-logo">
      <a href="https://ng.ant.design/" target="_blank">
        <img src="https://ng.ant.design/assets/img/logo.svg" alt="logo">
        <h1>Ant Design Of Angular</h1>
      </a>
    </div>
    <ul nz-menu nzTheme="dark" nzMode="inline" [nzInlineCollapsed]="isCollapsed">
      <li nz-submenu nzOpen nzTitle="Dashboard" nzIcon="dashboard">
        <ul>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/welcome">Welcome</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/map">Map</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/chart">Chart</a>
          </li>
        </ul>
      </li>
      <li nz-submenu nzTitle="Form" nzIcon="form">
        <ul>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/student">Student</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/student2">Student2</a>
          </li>
        </ul>
      </li>
      <li nz-submenu nzTitle="Product" nzIcon="shop">
        <ul>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/product">Product</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/customer">Customer</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/sell/order">Order</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/sell/history">History</a>
          </li>
        </ul>
      </li>
      <li nz-submenu nzTitle="Product2" nzIcon="shop">
        <ul>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/product2">Product2</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/customer2">Customer2</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/sell2/order">Order2</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/sell2/history">History2</a>
          </li>
        </ul>
      </li>
      <li nz-submenu nzTitle="Setting" nzIcon="setting">
        <ul>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/setting">Product</a>
          </li>
        </ul>
      </li>
    </ul>
  </nz-sider>
  <nz-layout>
    <nz-header>
      <div class="app-header">
        <span class="header-trigger" (click)="isCollapsed = !isCollapsed">
            <i class="trigger"
               nz-icon
               [nzType]="isCollapsed ? 'menu-unfold' : 'menu-fold'"
            ></i>
        </span>
        <span>{{title}}</span>
      </div>
    </nz-header>
    <nz-content>
      <div class="inner-content">
        <router-outlet></router-outlet>
      </div>
    </nz-content>
  </nz-layout>
</nz-layout>
